package com.pactera.jep.service.yapin.common;

/**
 * @author Alex
 * @version 1.0
 * @date 2020-07-21 13:58
 */
public class Page {
    private int pageNum = 1;
    private int pageSize = 10;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {

        this.pageNum = pageNum > 0 ? pageNum : 1;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {

        this.pageSize = pageSize > 0 ? pageSize : 10;
    }
}
